<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let obj = {
        name: '',
        age: 18,
        sex: 'man'
    };
    let bool = obj.name || 'asdasd';
    console.log(bool);
</script>
</body>
</html>
